/*
 *	               _ooOoo_ 
 *	              o8888888o 
 *	              88" . "88 
 *	              (| -_- |) 
 *	              O\  =  /O 
 *	           ____/`---'\____ 
 *	         .'  \\|     |//  `. 
 *	        /  \\|||  :  |||//  \ 
 *	       /  _||||| -:- |||||-  \ 
 *	       |   | \\\  -  /// |   | 
 * 	       | \_|  ''\---/''  |   | 
 * 	       \  .-\__  `-`  ___/-. / 
 * 	    ___ `. .'  /--.--\  `. . __ 
 *	  ."" '<  `.___\_<|>_/___.'  >'"". 
 *	 | | :  `- \`.;`\ _ /`;.`/ - ` : | | 
 *	 \  \ `-.   \_ __\ /__ _/   .-` /  / 
 *======`-.____`-.___\_____/___.-`____.-'====== 
 *                   `=---=' 
 *^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
 *佛祖保佑       永无BUG 
 * File name:          FileHodler.java
 * Copyright@blog.ilvelh.com(China)
 * Editor:           JDK1.7_40
 */
package com.ilvelh.test;

import java.util.List;

import com.alibaba.fastjson.JSONObject;
import com.ilvelh.tools.PointUtil;
import com.ilvelh.tools.PointUtil.Coordinate;
import com.ilvelh.tools.PointUtil.LatLngView;

/**
 * 占位文件
 * <p>
 * Author: ilvelh
 * <p>
 * Date:2014-9-10 Time:下午1:58:21
 * <p>
 */
public class FileHodler {
	//31.5375333333333  ,120.354031666667
	public static double X = 120.35376;
	public static double Y = 31.537625;

	public static void main(String[] args) {
		LatLngView a1 = new LatLngView(120.351483767, 31.537143964,
				120.350984062, 31.537801681, 120.354794332, 31.539666633,
				120.355271043, 31.539230687);
		LatLngView a2 = new LatLngView(120.352983, 31.535112,
				120.354367, 31.536432, 120.358209, 31.537632,
				120.353038, 31.537868);
		
		Coordinate c = new Coordinate(X, Y);
		boolean inClub = PointUtil.isInClub(c, a1);
		System.out.println(inClub);
		
		
		double distance = PointUtil.getDistance(new Coordinate(120.35446915, 31.54209904), new Coordinate(120.213089, 31.321263));
		//System.out.println(distance);  
		Coordinate convert = PointUtil.convert(new Coordinate(120.2170706, 31.321266));
		System.out.println(convert.getLat()+","+convert.getLng());
		System.out.println(4&1);
	}
	public static class P{
		private double x;
		private double y;
		public double getX() {
			return x;
		}
		public void setX(double x) {
			this.x = x;
		}
		public double getY() {
			return y;
		}
		public void setY(double y) {
			this.y = y;
		}
	}
	
	
	
}
